const { expressjwt: expressJWT } = require('express-jwt')

exports.tokenAuth = expressJWT({
    secret: process.env["SIGN_KEY"],
    algorithms: ['HS256'],
    credentialsRequired: true, //对没有携带token的 接口不抛出错误
})

